{% extends 'index.html' %}


{% block style_content %}
    <style>

        .card {
          margin-top: 300px;
        }
    </style>
{% endblock %}

{% block content %}
    <div class="accountbg"></div>
    <div class="wrapper-page">
        <div class="card">
            <div class="card-body">
                <div class="text-center m-b-20">
                        <strong style="font-size: 20px;">确认并开始训练</strong>
                </div>
                <div class="p-3">
                    <form class="form-horizontal" action="#">
                        {% csrf_token %}
                        <div class="form-group text-center row m-t-20">
                            <div class="col-6">
                                <a id="confirm-button" class="btn btn-danger btn-block waves-effect waves-light" href="{% url 'train:execute_train' %}">
                                    确认
                                </a>
                            </div>
                            <div class="col-6">
                                <a class="btn btn-danger btn-block waves-effect waves-light" href="{% url 'train:upload' %}" style="color: white;">
                                    取消
                                </a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
{% endblock %}


{% block script_content %}
<script src="/static/js/console-ban.min.js"></script>
<script>
    $(document).ready(function() {
        $('#confirm-button').click(function() {
            $('#loading').show();
        });
    });
</script>
{% endblock %}